package ooday02;

public class Doctor extends Person {
    private String title;

    public Doctor(String name, int age, String address, String title) {
        super(name, age, address);
        this.title = title;
    }

    void surgery(Person p) {
        System.out.println(this.getName() + "正在给" + p.getName() + "做手术...");
    }
}
